cmake_minimum_required(VERSION 3.19)
project(main C CXX)
set(CMAKE_CXX_STANDARD 17)


# MSVC utf-8
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/source-charset:utf-8>")
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/source-charset:utf-8>")


# GNU utf-8
add_compile_options("$<$<C_COMPILER_ID:GNU>:-fexec-charset=GBK>")
add_compile_options("$<$<CXX_COMPILER_ID:GNU>:-fexec-charset=GBK>")
add_compile_options("$<$<C_COMPILER_ID:GNU>:-finput-charset=utf-8>")
add_compile_options("$<$<CXX_COMPILER_ID:GNU>:-finput-charset=utf-8>")



# set(CMAKE_CXX_FLAGS "-m32")

# 输出操作系统平台信息
math(EXPR TARGET_BITS "8 * ${CMAKE_SIZEOF_VOID_P}")
if (WIN32)
    message(STATUS "Building on Windows platform.")
elseif (APPLE)
    message(STATUS "Building on MacOS platform.")
    add_compile_definitions(TARGET_OS_MAC)
elseif (UNIX)
    message(STATUS "Building on UNIX-like OS platform.")
elseif (MinGW)
    message(STATUS "Building on UNIX-like OS platform.")
endif ()

# include_directories(src)


# 添加头文件(*/include)
# include_directories(Neon/include)
# include_directories(demo/include)

# include_directories(AenoPlatform/win32/src)
# include_directories(AenoPlatform/win32/src)


# include_directories(AenoGraphics/src)
include_directories(AenoEngine/src)
include_directories(demo/src)

# 添加创建库文件的子目录
# add_subdirectory(AenoPlatform/win32)
# add_subdirectory(AenoGraphics)
add_subdirectory(AenoEngine)

add_subdirectory(demo)
